<%--
  Created by IntelliJ IDEA.
  User: HUAWEI
  Date: 2024/11/15
  Time: 20:21
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Success</title>
    <link rel="stylesheet" href="css/reg.css">
</head>
<body>
    <%
        if (session.getAttribute("userBean") == null) {
    %>
    <jsp:forward page="reg.jsp"/>
    <%
            return;
        }
    %>
    <div class = "box">
        <div class="box_info">
            <h2>恭喜你，注册成功,您的信息</h2>
            <p><strong>用户名:</strong>${ userBean.username }</p>
            <p><strong>密码:</strong> ${ userBean.password }</p>
            <p><strong>邮箱:</strong> ${ userBean.email }</p>
        </div>
        <div class="btn-box">
            <div>
                <button> <a href="login.jsp">确认</a> </button>
            </div>
        </div>
    </div>
</body>
</html>
